package yj.scms.goods.feignapi;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import yj.scms.userserviceapi.pojo.UserEntity;

import java.util.List;

@FeignClient(value = "USER-SERVICE")
public interface FeignUserService {

    @RequestMapping(value = "/user/get/{id}",method = RequestMethod.GET)
    public UserEntity get(@PathVariable("id") long id);

    @RequestMapping(value = "/user/add",method = RequestMethod.POST)
    public Integer addUser(@RequestBody UserEntity user);

}
